<?php

namespace AdminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * BaseWebchatMember
 *
 * @ORM\Table(name="base_webchat_member", indexes={@ORM\Index(name="idx_base_webchat_member_name", columns={"nickname"})})
 * @ORM\Entity(repositoryClass="AdminBundle\Repository\BaseWebchatMemberRepository")
 */
class BaseWebchatMember
{
    /**
     * @var integer
     *
     * @ORM\Column(name="webchat_user_id", type="integer", nullable=false)
     */
    private $webchatUserId;

    /**
     * @var string
     *
     * @ORM\Column(name="nickname", type="string", length=45, nullable=false)
     */
    private $nickname = '';

    /**
     * @var string
     *
     * @ORM\Column(name="user_name", type="string", length=100, nullable=false)
     */
    private $userName = '';

    /**
     * @var string
     *
     * @ORM\Column(name="remark_name", type="string", length=45, nullable=false)
     */
    private $remarkName = '';

    /**
     * @var string
     *
     * @ORM\Column(name="mobile", type="string", length=45, nullable=false)
     */
    private $mobile = '';

    /**
     * @var string
     *
     * @ORM\Column(name="password", type="string", length=45, nullable=false)
     */
    private $password = '';

    /**
     * @var string
     *
     * @ORM\Column(name="note", type="string", length=45, nullable=false)
     */
    private $note = '';

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_enabled", type="boolean", nullable=false)
     */
    private $isEnabled = '1';

    /**
     * @var string
     *
     * @ORM\Column(name="creator", type="string", length=45, nullable=false)
     */
    private $creator = '';

    /**
     * @var string
     *
     * @ORM\Column(name="ip", type="string", length=20, nullable=false)
     */
    private $ip = '';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="ctime", type="datetime", nullable=false)
     */
    private $ctime = 'CURRENT_TIMESTAMP';

    /**
     * @var string
     *
     * @ORM\Column(name="country", type="string", length=45, nullable=false)
     */
    private $country = '';

    /**
     * @var string
     *
     * @ORM\Column(name="province", type="string", length=45, nullable=false)
     */
    private $province = '';

    /**
     * @var string
     *
     * @ORM\Column(name="city", type="string", length=45, nullable=false)
     */
    private $city = '';

    /**
     * @var string
     *
     * @ORM\Column(name="signature", type="string", length=90, nullable=false)
     */
    private $signature = '';

    /**
     * @var string
     *
     * @ORM\Column(name="sex", type="string", length=10, nullable=false)
     */
    private $sex = '';

    /**
     * @var string
     *
     * @ORM\Column(name="head_img_url", type="string", length=45, nullable=false)
     */
    private $headImgUrl = '';

    /**
     * @var integer
     *
     * @ORM\Column(name="status", type="integer", nullable=false)
     */
    private $status = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="status_text", type="string", length=45, nullable=false)
     */
    private $statusText = '';

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_contact", type="boolean", nullable=false)
     */
    private $isContact = '1';

    /**
     * @var integer
     *
     * @ORM\Column(name="type", type="integer", nullable=false)
     */
    private $type = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="type_text", type="string", length=45, nullable=true)
     */
    private $typeText;

    /**
     * @var string
     *
     * @ORM\Column(name="tags", type="string", length=45, nullable=false)
     */
    private $tags = '';

    /**
     * @var integer
     *
     * @ORM\Column(name="source_type", type="integer", nullable=false)
     */
    private $sourceType = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;


    /**
     * Set webchatUserId
     *
     * @param integer $webchatUserId
     *
     * @return BaseWebchatMember
     */
    public function setWebchatUserId($webchatUserId)
    {
        $this->webchatUserId = $webchatUserId;

        return $this;
    }

    /**
     * Get webchatUserId
     *
     * @return integer
     */
    public function getWebchatUserId()
    {
        return $this->webchatUserId;
    }

    /**
     * Set nickname
     *
     * @param string $nickname
     *
     * @return BaseWebchatMember
     */
    public function setNickname($nickname)
    {
        $this->nickname = $nickname;

        return $this;
    }

    /**
     * Get nickname
     *
     * @return string
     */
    public function getNickname()
    {
        return $this->nickname;
    }

    /**
     * Set userName
     *
     * @param string $userName
     *
     * @return BaseWebchatMember
     */
    public function setUserName($userName)
    {
        $this->userName = $userName;

        return $this;
    }

    /**
     * Get userName
     *
     * @return string
     */
    public function getUserName()
    {
        return $this->userName;
    }

    /**
     * Set remarkName
     *
     * @param string $remarkName
     *
     * @return BaseWebchatMember
     */
    public function setRemarkName($remarkName)
    {
        $this->remarkName = $remarkName;

        return $this;
    }

    /**
     * Get remarkName
     *
     * @return string
     */
    public function getRemarkName()
    {
        return $this->remarkName;
    }

    /**
     * Set mobile
     *
     * @param string $mobile
     *
     * @return BaseWebchatMember
     */
    public function setMobile($mobile)
    {
        $this->mobile = $mobile;

        return $this;
    }

    /**
     * Get mobile
     *
     * @return string
     */
    public function getMobile()
    {
        return $this->mobile;
    }

    /**
     * Set password
     *
     * @param string $password
     *
     * @return BaseWebchatMember
     */
    public function setPassword($password)
    {
        $this->password = $password;

        return $this;
    }

    /**
     * Get password
     *
     * @return string
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * Set note
     *
     * @param string $note
     *
     * @return BaseWebchatMember
     */
    public function setNote($note)
    {
        $this->note = $note;

        return $this;
    }

    /**
     * Get note
     *
     * @return string
     */
    public function getNote()
    {
        return $this->note;
    }

    /**
     * Set isEnabled
     *
     * @param boolean $isEnabled
     *
     * @return BaseWebchatMember
     */
    public function setIsEnabled($isEnabled)
    {
        $this->isEnabled = $isEnabled;

        return $this;
    }

    /**
     * Get isEnabled
     *
     * @return boolean
     */
    public function getIsEnabled()
    {
        return $this->isEnabled;
    }

    /**
     * Set creator
     *
     * @param string $creator
     *
     * @return BaseWebchatMember
     */
    public function setCreator($creator)
    {
        $this->creator = $creator;

        return $this;
    }

    /**
     * Get creator
     *
     * @return string
     */
    public function getCreator()
    {
        return $this->creator;
    }

    /**
     * Set ip
     *
     * @param string $ip
     *
     * @return BaseWebchatMember
     */
    public function setIp($ip)
    {
        $this->ip = $ip;

        return $this;
    }

    /**
     * Get ip
     *
     * @return string
     */
    public function getIp()
    {
        return $this->ip;
    }

    /**
     * Set ctime
     *
     * @param \DateTime $ctime
     *
     * @return BaseWebchatMember
     */
    public function setCtime($ctime)
    {
        $this->ctime = $ctime;

        return $this;
    }

    /**
     * Get ctime
     *
     * @return \DateTime
     */
    public function getCtime()
    {
        return $this->ctime;
    }

    /**
     * Set country
     *
     * @param string $country
     *
     * @return BaseWebchatMember
     */
    public function setCountry($country)
    {
        $this->country = $country;

        return $this;
    }

    /**
     * Get country
     *
     * @return string
     */
    public function getCountry()
    {
        return $this->country;
    }

    /**
     * Set province
     *
     * @param string $province
     *
     * @return BaseWebchatMember
     */
    public function setProvince($province)
    {
        $this->province = $province;

        return $this;
    }

    /**
     * Get province
     *
     * @return string
     */
    public function getProvince()
    {
        return $this->province;
    }

    /**
     * Set city
     *
     * @param string $city
     *
     * @return BaseWebchatMember
     */
    public function setCity($city)
    {
        $this->city = $city;

        return $this;
    }

    /**
     * Get city
     *
     * @return string
     */
    public function getCity()
    {
        return $this->city;
    }

    /**
     * Set signature
     *
     * @param string $signature
     *
     * @return BaseWebchatMember
     */
    public function setSignature($signature)
    {
        $this->signature = $signature;

        return $this;
    }

    /**
     * Get signature
     *
     * @return string
     */
    public function getSignature()
    {
        return $this->signature;
    }

    /**
     * Set sex
     *
     * @param string $sex
     *
     * @return BaseWebchatMember
     */
    public function setSex($sex)
    {
        $this->sex = $sex;

        return $this;
    }

    /**
     * Get sex
     *
     * @return string
     */
    public function getSex()
    {
        return $this->sex;
    }

    /**
     * Set headImgUrl
     *
     * @param string $headImgUrl
     *
     * @return BaseWebchatMember
     */
    public function setHeadImgUrl($headImgUrl)
    {
        $this->headImgUrl = $headImgUrl;

        return $this;
    }

    /**
     * Get headImgUrl
     *
     * @return string
     */
    public function getHeadImgUrl()
    {
        return $this->headImgUrl;
    }

    /**
     * Set status
     *
     * @param integer $status
     *
     * @return BaseWebchatMember
     */
    public function setStatus($status)
    {
        $this->status = $status;

        return $this;
    }

    /**
     * Get status
     *
     * @return integer
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set statusText
     *
     * @param string $statusText
     *
     * @return BaseWebchatMember
     */
    public function setStatusText($statusText)
    {
        $this->statusText = $statusText;

        return $this;
    }

    /**
     * Get statusText
     *
     * @return string
     */
    public function getStatusText()
    {
        return $this->statusText;
    }

    /**
     * Set isContact
     *
     * @param boolean $isContact
     *
     * @return BaseWebchatMember
     */
    public function setIsContact($isContact)
    {
        $this->isContact = $isContact;

        return $this;
    }

    /**
     * Get isContact
     *
     * @return boolean
     */
    public function getIsContact()
    {
        return $this->isContact;
    }

    /**
     * Set type
     *
     * @param integer $type
     *
     * @return BaseWebchatMember
     */
    public function setType($type)
    {
        $this->type = $type;

        return $this;
    }

    /**
     * Get type
     *
     * @return integer
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Set typeText
     *
     * @param string $typeText
     *
     * @return BaseWebchatMember
     */
    public function setTypeText($typeText)
    {
        $this->typeText = $typeText;

        return $this;
    }

    /**
     * Get typeText
     *
     * @return string
     */
    public function getTypeText()
    {
        return $this->typeText;
    }

    /**
     * Set sourceType
     *
     * @param integer $sourceType
     *
     * @return LogNewMember
     */
    public function setSourceType($sourceType)
    {
        $this->sourceType = $sourceType;

        return $this;
    }

    /**
     * Get sourceType
     *
     * @return integer
     */
    public function getSourceType()
    {
        return $this->sourceType;
    }

    /**
     * Set tags
     *
     * @param string $tags
     *
     * @return LogNewMember
     */
    public function setTags($tags)
    {
        $this->tags = $tags;

        return $this;
    }

    /**
     * Get tags
     *
     * @return string
     */
    public function getTags()
    {
        return $this->tags;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
}
